//
//  QYRequestServer.h
//  QingYunZhi
//
//  Created by zhengminjie on 16/7/6.
//  Copyright © 2016年 zhengminjie. All rights reserved.
//

#import <Foundation/Foundation.h>


typedef void(^SDSenderBlock)(id sender);

@interface MJRequestServer : NSObject

+ (NSString *)getUserid;

/*
 *通用post
 */
+ (void)Post:(NSDictionary*)parameters andApiName:(NSString *)apiname andAPI:(NSString *)API andSuccess:(SDSenderBlock)success andFailure:(SDSenderBlock)failure;
/*
 *通用get
 */
+ (void)Get:(NSDictionary*)parameters andApiName:(NSString *)apiname andAPI:(NSString *)API andSuccess:(SDSenderBlock)success andFailure:(SDSenderBlock)failure;
/*
 *优酷视频获取
 */
+ (void)youkuVideoByParameters:(NSDictionary*)parameters andSuccess:(SDSenderBlock)success andFailure:(SDSenderBlock)failure;

+ (void)requestArticleWithHttpArg:(NSString*)HttpArg andSuccess:(SDSenderBlock)success andFailure:(SDSenderBlock)failure;


@end
